<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="col-sm-9 col-md-10 main">
    <h1 class="page-header">${requestedGrant.grantName}
    </h1>

    <div>${requestedGrant.requestDescription}</div>

    <div>
        <form action="" id="moneyForm" method='POST'
              class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-4 control-label">Add Money:</label>

                <div class="col-sm-8">
                    <input type="number" size="7" name="num" value="0">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-4 col-sm-8">
                    <button type="submit" class="btn btn-primary">Send Money</button>
                </div>
            </div>
        </form>
        <c:forEach items="${requestedGrant.moneyTransfer}" var="money">
            <div>
                <form:form>
                    <h3>${money.user.userLogin}</h3>

                    <div>
                        <c:out value="${money.number}"/>
                    </div>
                </form:form>
            </div>
        </c:forEach>
    </div>
</div>
 
